programming - DDE - WinWord DDE ServerWhat links here?


In these examples, 2 = close without saving, 1 = save first, 0 = prompt.



"http://wiki.tcl.tk/996"






Adrian Davis wrote:
I've tried out a few simple things - Works OK...
...Just a couple of questions however...

(*) The document only seems to be updated if the Winword window is minimised (Word97/NT4 SP3). Is this the correct behaviour -or- is there something I can do to update the document while the window is visible?

Yup, use the 'Insert' command, instead of passing just ASCII. Helps if you add -async, too, just for speed..

dde execute -async Winword System {[Insert "Hello, World."]}

(*) Is it possible to "FileExit" on an unsaved document and either supress -or- "answer" the "Do you want to save it" dialog?

Yup.

dde execute Winword System {[FileExit 2]}

I would recommend, though, that you close the file first, then exit:

dde execute Winword System {[FileClose 2]}

(2 = close without saving, 1 = save first, 0 = prompt)

I'll get hold of some Word Macro Language documentation ASAP (Honest!!)



Heh.. that's what I said originally too.. but I had it on my system all along.. "wrdbasic.hlp"... installs if you choose the "please flood my hard drive with all the stuff I may never use" options.. : )


Bill
programming - DDE - WinWord DDE Server
filename:programming - DDE - WinWord DDE Server
filename:programming%20%2D%20DDE%20%2D%20WinWord%20DDE%20Server
last edit:March 25 2009 19:31:10 (5520 days ago)
ct = 1714977364.000000 = May 06 2024 02:36:04
ft = 1238023870.000000 = March 25 2009 19:31:10
dt = 476953494.000000